﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Framework.Common.JsonEntities
{
    /// <summary>
    /// 
    /// </summary>
    public class JsonTreeNode
    {
        #region properties
        /// <summary>
        /// 
        /// </summary>
        public string id { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string text { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string value { get; set; }

        private List<JsonTreeNodeCh> _ChildNodes;
        public List<JsonTreeNodeCh> children
        {
            get
            {
                if (_ChildNodes == null)
                {
                    _ChildNodes = new List<JsonTreeNodeCh>();
                }
                return _ChildNodes;
            }
        }

        #endregion
    }


    public class JsonTreeNodeCh
    {
        #region properties
        /// <summary>
        /// 
        /// </summary>
        public string id { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string text { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string value { get; set; }


        #endregion
    }
}
